﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>唻设计</title>
<script type='text/javascript'
	src='https://ssl-webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/jquery.min.js'></script>
<script type="text/javascript">
<!--
	var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js";
	if (document.location.protocol == 'https:')
		unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
	document
			.write('<script type="text\/javascript" src="' + unityObjectUrl + '"><\/script>');
	-->
</script>
<script type="text/javascript">

// var url= window.location.href;
// userid = url.getQueryString("userid");
// token = url.getQueryString("token");  
// username = url.getQueryString("username");  

//  $(window).unload(function(){
//           opener.designWindowClosed();    
//  });
 
<!--
	var config = {
		width : '100%',
		height : '100%',
		params : {
			enableDebugging : "0"
		}

	};
	config.params["disableContextMenu"] = true;
	var u = new UnityObject2(config);

	jQuery(function() {

		var $missingScreen = jQuery("#unityPlayer").find(".missing");
		var $brokenScreen = jQuery("#unityPlayer").find(".broken");
		$missingScreen.hide();
		$brokenScreen.hide();

		u.observeProgress(function(progress) {
			switch (progress.pluginStatus) {
			case "broken":
				$brokenScreen.find("a").click(function(e) {
					e.stopPropagation();
					e.preventDefault();
					u.installPlugin();
					return false;
				});
				$brokenScreen.show();
				break;
			case "missing":
				$missingScreen.find("a").click(function(e) {
					e.stopPropagation();
					e.preventDefault();
					u.installPlugin();
					return false;
				});
				$missingScreen.show();
				break;
			case "installed":
				$missingScreen.remove();
				break;
			case "first":
				break;
			}
		});
		u.initPlugin(jQuery("#unityPlayer")[0], "http://www.lipe-home.com/App/Out.unity3d");
		
		
		
	});
	 
	 function getUserId(){
	 var json =  '{"userid":"${login_user.customerid}","username":"${login_user.realname}","token":"${login_user.token}"}'; 	 
 	 CallUnity3d_RecieveUserId(json);
	 }
	 
	function getDesignId() {
		return "1001";
	}

	function CallUnity3d_RecieveUserId(json) {
		u.getUnity().SendMessage("U3d", "CallUnity3d_RecieveUserId", json);
	}

	-->
</script>
<style type="text/css">
<!--
* {
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	padding: 0px;
	margin: 0px;
	border: none;
	text-align: none;
}

body {
	font-family: Helvetica, Verdana, Arial, sans-serif;
	background-color: white;
	color: black;
	text-align: center;
	height: 100%;
	width: 100%;
}

a:link, a:visited {
	color: #000;
}

a:active, a:hover {
	color: #666;
}

p.header {
	font-size: small;
}

p.header span {
	font-weight: bold;
}

p.footer {
	font-size: x-small;
}

div.content {
	border-width: 0px;
	border-color: none;
	margin: auto;
	width: 100%;
	height: 100%;
	border-color: none
}

div.broken, div.missing {
	margin: auto;
	position: relative;
	top: 50%;
	width: 193px;
}

div.broken a, div.missing a {
	margin: auto;
	position: relative;
	top: -31px;
}

div.broken img, div.missing img {
	border-width: 0px;
}

div.broken {
	display: none;
}

div#unityPlayer {
	cursor: default;
	height: 100%;
	width: 100%;
	border-color: none;
}
-->
</style>
</head>
<body>
	<div class="content">
		<div id="unityPlayer">
			<div class="missing">
				<a href="http://unity3d.com/webplayer/"
					title="Unity Web Player. Install now!"> <img
					alt="Unity Web Player. Install now!"
					src="http://webplayer.unity3d.com/installation/getunity.png"
					width="193" height="63" />
				</a>
			</div>
		</div>
	</div>
</body>
</html>